<%= form_for(@project) do |f| %>
  <% if @project.errors.any? %>
    <div id="error_explanation">
      <h2><%= @project.errors.count.to_s + " " + t(:error, :scope => [:helpers]) %></h2>

      <ul>
      <% @project.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label t :name, :scope => [:activerecord, :attributes, :project] %><br />
    <%= f.text_field :name %>
  </div>

  <div class="field">
    <%= f.label t :description, :scope => [:activerecord, :attributes, :project] %><br />
    <%= f.text_area :description %>
  </div>

  <div class="field">
    <%= f.label t :url, :scope => [:activerecord, :attributes, :project] %><br />
    <%= f.text_field :url %>
  </div>

  <div class="field">
    <%= f.label t :status, :scope => [:activerecord, :attributes, :project] %>
    <%= f.select :status, t("activerecord.attributes.values.project.statuses").invert %>
  </div>

  <div class="actions">
    <% @submit_label = params[:id] ? (t :update, :scope => [:helpers, :submit], :model => (t "activerecord.models.project")) : (t :create, :scope => [:helpers, :submit], :model => (t "activerecord.models.project")) %>
    <%= f.submit @submit_label %>
  </div>
<% end %>
